#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>


int* multiply(int* A, int ALen, int* returnSize);
int main()
{
    int A[6] = { 1,2,3,4,5,6 };
    int* p = multiply(A,6,);
	return 0;
}

int* multiply(int* A, int ALen, int* returnSize)
{
    int* B = (int*)malloc(sizeof(int) * ALen);
    for (int t = 0; t < ALen; t++)
    {
        B[t] = 1;
    }
    *returnSize = ALen;
    for (int i = 0; i < ALen; i++)
    {
        for (int j = 0; j < ALen; j++)
        {
            if (i != j)
                B[i] *= A[j];
        }
    }
    return B;
    // write code here
}